import json

def j_save(filename,datas):
    with open(filename,'w',encoding='utf-8') as f:
        json.dump(datas, f, ensure_ascii=False, indent=2)

def j_load(filename):
    try:
        with open(filename,'r',encoding='utf-8') as f:
            datas = json.load(f)
        return datas
    except Exception as e:
        print(e)